﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Forum.BLL.Board;
using Forum.Web.Models;
using Forum.Entity.Board;
using Forum.Web.BaseCode;

namespace Forum.Web.Controllers
{
    public class HomeController : BaseController
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            BoardBO board = new BoardBO();
            HomeModel model = new HomeModel();
            model.Boards = board.GetList().Where(T => T.State == (int)BoardState.显示);
            return View(ForumPath.Views + "Home/Index.cshtml", model);
        }

    }
}
